import { createApp } from 'vue';
import App from './App.vue';
import { router } from './router';
import vuetify from './plugins/vuetify/index';
import i18n from '@/plugins/i18n';
// import msw from '@/plugins/msw';
import '@/scss/style.scss';
import '@/utils/errorHandler';
import PerfectScrollbar from 'vue3-perfect-scrollbar';
import 'vue3-perfect-scrollbar/dist/vue3-perfect-scrollbar.css';
import VueApexCharts from 'vue3-apexcharts';
import store from './store';
import { useNotificationStore } from './store/notificationStore';

// 设置默认语言为中文
i18n.global.locale.value = 'zhHans';

const app = createApp(App);
app.use(router);
app.use(vuetify);
app.use(store);
app.use(i18n);
app.use(PerfectScrollbar);
app.use(VueApexCharts);

// 启动应用
app.mount('#app');

// 初始化通知系统
const notificationStore = useNotificationStore();
notificationStore.initSampleNotifications();
